Game Models

  • One of the nine small grids in the larger grid. For simplicity, we refer to these small grids as BattleGrounds. Each of these grids contains a 2-D array of Tiles, which can be claimed by either player

    Note

    The tiles variable is mutable
    See more

    Declaration

    Swift

    public class BattleGround
  • This class refers to the main game grid. It contains a 2-D array of smaller grids, called BattleGrounds

    Note

    The battleGrounds array is not mutable. This is because each BattleGround is unique and does not need to change.
    See more

    Declaration

    Swift

    public class Grid
  • Types that conform to the QueryItemRepresentable protocol must implement properties that allow it to be saved as a query item in a URL.

    See more

    Declaration

    Swift

    protocol QueryItemRepresentable